package com.example.springboottest.example.deamon;

public class MainThread {
    public static void main(String[] args) {
        DeamonThread deamonThread = new DeamonThread();
        deamonThread.setDaemon(false);
        System.out.println("主线程开始");
        deamonThread.start();
//        MainThread mainThread = new MainThread();
//        mainThread.run();
        System.out.println("主线程结束");
    }
}